package com.centit.springbootdemo04.conditional;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * @author zhao_jx
 * @date 2020/7/5 18:28
 */
public class TestCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        // 可以通过判断一些系统变量，来决定要不要加载
        return false;
    }
}
